#define  _CRT_SECURE_NO_WARNINGS
using namespace std;
#include<iostream>
#include<list>
#include<string.h>

void print(const list<int>& l)
{
	for (list<int>::const_iterator it = l.begin(); it != l.end(); it++)
	{
		cout << *it << endl;
	}
}

void test01()
{
	list<int>l1;
	l1.push_back(10);
	l1.push_back(20);
	l1.push_back(30);
	l1.push_back(140);
	list<int>l2;
	l2.assign(l1.begin(), l1.end());
	print(l2);
}

int main()
{
	test01();
	return 0;
}